import { ILv70DramaStepCommand } from "../interfaces/ILv70DramaStepCommand";
import { TDrama } from "../../../../../Message/Db/Tables/TDrama";
import { Game } from "../../../Game";
//class Lv70OpScreenMove
    
    export  class Lv70OpScreenMove implements ILv70DramaStepCommand
    {
        

        public dispose(): void
        {
            return;
        }

        public call(arg1: TDrama, arg2: Function=null): void
        {
            var data: TDrama;
            var callback: Function=null;
            var delay: number;
            var end: Function;

            var loc1;
            end = null;
            data = arg1;
            callback = arg2;
            end = (): void
            {
                if (callback != null) 
                {
                    callback.apply();
                }
                return;
            }
            delay = 0.6;
            if (data.valueOne == -1 && data.valueTwo == -1) 
            {
                Game.scene.stopTweenScrollRect(delay, end);
                return;
            }
            Game.scene.tweenScrollRect(data.valueOne, data.valueTwo, delay, end);
            return;
        }

        public cancel(arg1: TDrama, arg2: Function=null): void
        {
            return;
        }
    }
